package com.coco.bargain.service;

import com.coco.bargain.pojo.TbBargainGoods;
import com.coco.bargain.vo.BargainGoodsVo;
import com.coco.bargain.vo.GoodsSearchVo;
import com.coco.common.result.ResultData;

import java.util.List;

/**
 * @author minicoco
 * @version 1.0
 * @date 2021/7/21 20:08
 */
public interface BargainGoodsService {
    /**
     * 列表搜索
     * @param searchVo
     * @return
     */
    ResultData findByStatusAndName(GoodsSearchVo searchVo);

    void deleteById(Long id);

    void updateStatus(Long id, Integer status);

    TbBargainGoods findById(Long id);

    void updateById(TbBargainGoods bargainGoods);

    void addToTbBargainGoods(TbBargainGoods tbBargainGoods);


    void addTbBargainGoods(BargainGoodsVo bargainGoodsVo);

    BargainGoodsVo findOne(Long id);

    void updateBargainGoods(BargainGoodsVo bargainGoodsVo);

}
